package com.example.common.codeFactory;

import com.example.common.codeFactory.entity.CodeGenerateType;

public class CodeGenerateStrategyTest {

    public static void main(String[] args) {
        CodeGenerateType codeGenerateType = CodeGenerateType.DEFAULT;
        CodeGenerateStrategyFactory codeGenerateStrategyFactory = new CodeGenerateStrategyFactory();
        CodeGenerateStrategy codeGenerateStrategy = codeGenerateStrategyFactory.getCodeGenerateStrategy(codeGenerateType);
        String code = codeGenerateStrategy.generateCode("pId",6);
        System.out.println(code);
    }
}
